# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         demo07
# Description:
# Author:       98745
# Date:         2019/3/9
#-------------------------------------------------------------------------------

a=set([1,2])
b=set([10,20])
a.add(4)
print(a)
try:
    a.add(b)
except:
    print('集合不能作为集合的元素值')
a.add(frozenset(b))
print(a)
d={'pan':21,"yan":22}
d[frozenset(a)]=60
print(d)
t=[1,2,3]
tt=(12,2,3)
try:
    d[t]=111
    a.add(t)
    a.add(d)
except:
    print('抛出异常')
a.add(tt)
print(a)